<?php

/*
 * |--------------------------------------------------------------------------
 * | Web DiscuzX Routes，通心粉社区 DiscuzX3.2 路由 转发
 * |--------------------------------------------------------------------------
 * |
 * | Here is where you can register web routes for your application. These
 * | routes are loaded by the RouteServiceProvider within a group which
 * | contains the "web" middleware group. Now create something great!
 * |
 */

Route::group([
    'prefix' => '',
    'namespace' => 'Web\Discuz'
], function () {
    Route::get('index.php', 'IndexController@index');
    Route::get('portal.php', 'IndexController@index');
    Route::get('forum.php', 'IndexController@index');

    Route::get('admin.php', 'IndexController@index');
    Route::get('api.php', 'IndexController@index');
    Route::get('connect.php', 'IndexController@index');
    Route::get('plugin.php', 'IndexController@index');
    Route::get('home.php', 'IndexController@index');
    Route::get('member.php', 'IndexController@index');
    Route::get('misc.php', 'IndexController@index');
    Route::get('passport.php', 'IndexController@index');
    Route::get('search.php', 'IndexController@index');
    Route::get('group.php', 'IndexController@index');

    Route::get('trade.php', 'IndexController@index');
    Route::get('disease.php', 'IndexController@index');

    Route::get('data/attachment/portal/{ym}/{d}/{filename}', 'IndexController@getDataAttach');
    //example："http://www.tongwei.cn/data/attachment/portal/201712/18/170025yevqwqnq2fvrejh7.png"

    Route::get('uc_server/data/avatar/{y}/{m}/{d}/{filename}', 'IndexController@index');
    //example："http://www.tongwei.cn/uc_server/data/avatar/000/00/00/02_avatar_small.jpg"
});
